package com.wang.myapplication.activity;

import android.util.Log;
import android.widget.Toast;

import com.wang.myapplication.base.MyApp;

/**
 * Created by xhwang on 2018/3/21.
 */

public abstract class MyHttpback<T> {

    public abstract void onSuccessBack(T obj);

    public void onErrorBack(Throwable pE) {
        Log.e("MyHttpback","onErrorBack！！！--->"+pE);
        Toast.makeText(MyApp.getAppContext(), "网络反馈失败", Toast.LENGTH_SHORT).show();
    }


}
